import requests
# import parel


def func():
    url = 'https://www.xiachufang.com/category/178/'
    headers = {
        'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
        'Accept-Encoding': 'gzip, deflate, br',
        'Accept-Language': 'zh-CN,zh;q=0.9',
        'Cache-Control': 'max-age=0',
        'Connection': 'keep-alive',
        'Cookie': 'bid=Pu9nhmeq; Hm_lvt_ecd4feb5c351cc02583045a5813b5142=1647159911; sajssdk_2015_cross_new_user=1; sensorsdata2015jssdkcross=%7B%22distinct_id%22%3A%2217f8261a434755-02194dd45852ab-977173c-1327104-17f8261a43515b3%22%2C%22%24device_id%22%3A%2217f8261a434755-02194dd45852ab-977173c-1327104-17f8261a43515b3%22%2C%22props%22%3A%7B%22%24latest_referrer%22%3A%22https%3A%2F%2Fwww.baidu.com%2Flink%22%2C%22%24latest_referrer_host%22%3A%22www.baidu.com%22%2C%22%24latest_traffic_source_type%22%3A%22%E8%87%AA%E7%84%B6%E6%90%9C%E7%B4%A2%E6%B5%81%E9%87%8F%22%2C%22%24latest_search_keyword%22%3A%22%E6%9C%AA%E5%8F%96%E5%88%B0%E5%80%BC%22%7D%7D; __gads=ID=75af5b4a0800d429-22ca3d42f5d000ed:T=1647159912:RT=1647159912:S=ALNI_MYZ-H3ZeKEFR0PwawsdXeVASzWfow; Hm_lpvt_ecd4feb5c351cc02583045a5813b5142=1647160593',
        'Host': 'www.xiachufang.com',
        'sec-ch-ua': '" Not A;Brand";v="99", "Chromium";v="99", "Google Chrome";v="99"',
        'sec-ch-ua-mobile': '?0',
        'sec-ch-ua-platform': '"Windows"',
        'Sec-Fetch-Dest': 'document',
        'Sec-Fetch-Mode': 'navigate',
        'Sec-Fetch-Site': 'none',
        'Sec-Fetch-User': '?1',
        'Upgrade-Insecure-Requests': '1',
        'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36',
    }
    reponse = requests.get(url,headers=headers).text
    print(reponse)


if __name__ == '__main__':
    func()